package info.iu9.acr;

public class TimeLabel {
  public TimeLabel() {
    update();
  }
  
  public long nanoSeconds() {
    return System.nanoTime() - s_;
  }
  
  public long milliSeconds() {
    return nanoSeconds() / 1000L / 1000L;
  }
  
  public double seconds() {
    return (double)nanoSeconds() / 1000.0 / 1000.0 / 1000.0;
  }
  
  public void update() {
    s_ = System.nanoTime();
  }
  
  private long s_;
}
